package com.jiangyao.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 章节课件信息
 * </p>
 *
 * @author xiangyan
 * @since 2020-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ChapterCourseware extends Model<ChapterCourseware> {

    private static final long serialVersionUID=1L;

    /**
     * 自增ID
     */
    @TableId(value = "chco_id", type = IdType.AUTO)
    private Integer chcoId;

    /**
     * 课程ID
     */
    private Integer subjectId;

    /**
     * 章节ID
     */
    private Integer chapterId;

    /**
     * 课件ID
     */
    private Integer coursewareId=0;

    /**
     * 课件别名
     */
    private String coursewareAlias="";

    /**
     * 试题ID
     */
    private Integer questionsId;

    /**
     * 排序
     */
    private Integer sortOrder;

    /**
     * 生成时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    private Integer createAdminId;

    /**
     * 状态 1 启用 2 无效 
     */
    private Integer status;


    @Override
    protected Serializable pkVal() {
        return this.chcoId;
    }

}
